package cn.itcast.servlet;

import cn.itcast.domain.Orders;
import cn.itcast.service.OrdersService;
import cn.itcast.service.impl.impl.OrdersServieImpl;
import org.junit.Test;

import java.util.List;

public class OrdersServlet {
    OrdersService service = new OrdersServieImpl();


    //查询所有订单信息
    @Test
    public  void  findall(){
        List<Orders> orders = service.findAll();
        System.out.println(orders);
    }


    //添加订单
    @Test
    public void add(){
        Orders od = new Orders(3,"003",1);
        service.add(od);
    }
}
